package ai.people.netmon.framework.domain.graph.tags;

import ai.people.netmon.framework.domain.archives.entity.GangGroupMembersBO;
import ai.people.netmon.framework.domain.graph.BaseTag;
import com.alibaba.fastjson.PropertyNamingStrategy;
import com.alibaba.fastjson.annotation.JSONType;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhenglin
 * @date 2022/6/24
 */
@Data
@NoArgsConstructor
@JSONType(naming = PropertyNamingStrategy.SnakeCase)
public class GangGroupMembersTag extends BaseTag {
    /**
     * 档案ID
     */
    private String personArchivesId;
    /**
     * 团伙身份
     */
    private String groupIdentity;
    /**
     * 危险程度
     */
    private String degreeOfDanger;

    /**
     * 创建时间
     */
    private Long createTime;
    /**
     * 更新时间
     */
    private Long updateTime;

    public GangGroupMembersTag(GangGroupMembersBO member) {
        this.personArchivesId = member.getPersonArchivesId();
        this.groupIdentity = member.getGroupIdentity();
        this.degreeOfDanger = member.getDegreeOfDanger();
        if (member.getUpdateTime() != null){
            this.updateTime = member.getUpdateTime();
        }
    }
}
